Lighting system with integrated sensor

ABSTRACT

Techniques and devices are provided for sensing image data from a scene and activating primary light sources based on information sensed from the scene. Subsets of a plurality of primary light sources may be activated to emit sensing spectrum of light onto a scene. Combined image data may be sensed from the scene while the subsets of the plurality of primary light sources are activated. Reflectance information for the scene may be determined based on the combined image data and combined sensing spectra. Spectrum optimization criteria for the primary light sources may be determined based on the reference information and a desired output parameter provided by a user or determined by a controller. The plurality of primary light sources may be activated to emit a lighting spectrum based on the spectrum optimization criteria.

BACKGROUND

Tunable lighting systems may be used to illuminate one or more scenescontaining objects and may be adjustable such that the light output bysuch systems is varied based on user input. Such tunable lightingsystems may be adjusted to, for example, increase or decrease the amountand/or type of light that is illuminated onto a scene. Further, suchtunable lighting systems may include multiple light sources, such asmultiple light bulbs, to illuminate a scene.

SUMMARY

The following description includes techniques and devices provided forsensing image data from a scene and activating primary light sourcesbased on the image data. Subsets of a plurality of primary light sourcesmay be activated to emit a sensing spectrum of light onto a scene. Imagedata may be sensed from the scene while the subsets of the plurality ofprimary light sources are activated. Reflectance information for thescene may be determined based on the combined image data. Spectrumoptimization criteria for the primary light sources may be determinedbased on the reference information and a desired output parameterprovided by a user or determined by a controller. The plurality ofprimary light sources may be activated to emit a lighting spectrum basedon the spectrum optimization criteria.

BRIEF DESCRIPTION OF THE DRAWINGS

A more detailed understanding may be had from the following description,given by way of example in conjunction with the accompanying drawingswherein:

FIG. 1 is a flowchart for activating primary light sources based onspectrum optimization criteria;

FIG. 2 is an example diagram of a image sensor, controller, andplurality of primary light sources;

FIG. 3A is an example chart of chromaticities of five primaries;

FIG. 3B is an example chart of the spectra of five primaries;

FIG. 4A is an example chart of spectra of the five primaries of FIGS. 3Aand 3B with their corresponding TM-30 indices including spectral powerplotted against wavelength;

FIG. 4B is an example chart of spectra of the five primaries of FIGS. 3Aand 3B with their corresponding TM-30 indices including Rg plottedagainst Rf;

FIG. 4C is an example chart of spectra of the five primaries of FIGS. 3Aand 3B with their corresponding TM-30 indices including Rf plottedagainst hue bins;

FIG. 4D is an example chart of spectra of the five primaries of FIGS. 3Aand 3B with their corresponding TM-30 indices including Rcs plottedagainst hue bins;

FIG. 5 shows an example chart of reference spectra with estimatedreference spectra using the five primaries of FIGS. 3A and 3B and apolynomial fit algorithm;

FIG. 6 shows actual color points of TM-30 CES 1-99 in CAM02-USC andestimated color points using the five primaries of FIGS. 3A and 3B;

FIG. 7A shows example color points of several CES in each of the huebins 1, 5, 9 and 13;

FIG. 7B shows an example color vector diagram showing three colorrending modes for high saturation of the huge bins or high fidelity ofFIG. 7A; and

FIG. 8 shows a flowchart for factory input data provide to an on-boardprocessing unit.

DETAILED DESCRIPTION

Examples of different lighting, tunable lighting, sensor, and/or lightemitting diode (“LED”) implementations will be described more fullyhereinafter with reference to the accompanying drawings. These examplesare not mutually exclusive, and features found in one example can becombined with features found in one or more other examples to achieveadditional implementations. Accordingly, it will be understood that theexamples shown in the accompanying drawings are provided forillustrative purposes only and they are not intended to limit thedisclosure in any way. Like numbers refer to like elements throughout.

It will be understood that, although the terms first, second, etc. maybe used herein to describe various elements, these elements should notbe limited by these terms. These terms are only used to distinguish oneelement from another. For example, a first element could be termed asecond element, and, similarly, a second element could be termed a firstelement, without departing from the scope of the present invention. Asused herein, the term “and/or” includes any and all combinations of oneor more of the associated listed items.

It will be understood that when an element such as a layer, region orsubstrate is referred to as being “on” or extending “onto” anotherelement, it can be directly on or extend directly onto the other elementor intervening elements may also be present. In contrast, when anelement is referred to as being “directly on” or extending “directlyonto” another element, there are no intervening elements present. Itwill also be understood that when an element is referred to as being“connected” or “coupled” to another element, it can be directlyconnected or coupled to the other element or intervening elements may bepresent. In contrast, when an element is referred to as being “directlyconnected” or “directly coupled” to another element, there are nointervening elements present. It will be understood that these terms areintended to encompass different orientations of the element in additionto any orientation depicted in the figures.

Relative terms such as “below” or “above” or “upper” or “lower” or“horizontal” or “vertical” may be used herein to describe a relationshipof one element, layer or region to another element, layer or region asillustrated in the figures. It will be understood that these terms areintended to encompass different orientations of the device in additionto the orientation depicted in the figures.

Tunable lighting arrays, including those with primary light sources, maysupport applications that benefit from distributed intensity, spatial,and temporal control of light distribution. Primary light sources may belight emitting devices such as LEDs that emit a given color. Tunablelighting array based applications may include, but are not limited to,precise spatial patterning of emitted light from pixel blocks orindividual pixels. Depending on the application, emitted light may bespectrally distinct, adaptive over time, and/or environmentallyresponsive. The light emitting arrays may provide scene based lightdistribution in various intensity, spatial, or temporal patterns. Theemitted light may be based at least in part on received sensor data, asdisclosed herein. Associated optics may be distinct at a pixel, pixelblock, or device level. Common applications supported by light emittingarrays include architectural and area illumination, professionallighting, retail lighting and/or exhibition lighting, and the like.

Use of a tunable light system, including primary light sources, mayprovide controlled illumination of portions of a scene for a determinedamount of time. This may allow the array to, for example, emphasizecertain colors or color properties within a scene, emphasize whitebackgrounds, emphasize moving objects and/or the like. Architectural andarea illumination may also benefit from the lighting disclosed herein.

In various applications where tunable lighting systems are used, anoptimal lighting spectrum may vary based on the illuminated scene. Thevariation may be a result of the objects, colors, and angles presentedin the scene and may also vary based on one or more intended desiredoutput parameters. As manual adjustment of the lighting spectrum witheach scene change may not be practical, as disclosed herein, a tunablelighting system may automatically adjust the lighting spectrum based onthe scene to be illuminated and/or one or more desired outputparameters.

According to implementations disclosed herein, as shown in FIG. 1 viaflow chart 100, a first subset of a plurality of primary light sourcesmay be activated to emit a first sensing spectrum onto a scene at 110.As described herein, the sensing spectrum may refer to the light emittedby a subset of the plurality of primary light sources while image datais collected via an image sensor. The sensing spectrum may include lightthat is not visible to a human viewing the scene. At 120, first imagedata may be sensed from the scene while the first subset of theplurality of primary light sources are activated. At 130 a second subsetof the plurality of primary light sources may be activated to emit asecond sensing spectrum onto a scene. At 140, second image data may besensed from the scene while the second subset of the plurality ofprimary light sources are activated. Notably, the plurality of lightsources may be activated in subsets such that a subset is activated,image data is collected while that subset is activated, and then anothersubset is activated and additional image data is collected. This processmay be repeated such that each subset of the plurality of primary lightsources corresponds to a primary light source and image data iscollected as each primary light source is activated. Preferably, atleast four or five primary light sources may be provided in a lightingsystem disclosed herein.

At 150, reference information for the scene may be determined based oncombined image data where combined image data is a combination of thefirst image data and the second image data. This combined image data maybe collected by combining image data while different subsets of theplurality of primary light sources are activated. It should be notedthat combined image data does not necessarily refer to different imagedata that is added together as combined image data may simply be thecollection of a number of different image data. At 160, spectrumoptimization criteria for the plurality of primary light sources may bedetermined based on the reference information and one or more desiredoutput parameters. The desired output parameters may be input by a useror a component or may be determined based on the scene, as furtherdisclosed herein. At 170, the plurality of primary light sources may beactivated to emit a lighting spectrum based on the spectrum optimizationcriteria. As described herein, the lighting spectrum may refer to thelight emitted by the plurality of primary light sources based on thespectrum optimization criteria such that the lighting spectrum isvisible to a human viewing the scene.

FIG. 2 shows an example diagram of a lighting system 200 as disclosedherein. A substrate 210 may be a mount or housing on which thecomponents of the lighting system 200 are attached to or placed on. Aplurality of primary light sources 260 may be provided and may emitlight as disclosed herein. The plurality of primary light sources 260may be separately addressable channels such that a first channel maycorrespond to a first primary light source (e.g., LEDs that emit redlight) and a second channel may correspond to a second primary lightsource (e.g., LEDs that emit royal blue light). A first optic lens 240may be proximate to the primary light sources 260 such that all or apart of the light emitted by the primary light sources 260 may passthrough the first lens 240 and may be shaped or adjusted by the firstoptic lens 240. It should be noted that although the first optic lens240 is shown as one component, it may be a combination of multiplecomponents and multiple components may be configured such that one or asubset of the components are aligned with one or a subset of theplurality of primary light sources.

Additionally, an image sensor 220 may be provided and may be inconnection with the substrate 210 or generally within the same housingas the plurality of primary light sources 260. Alternatively, the imagesensor 220 may be separate from the plurality of primary light sources260 and may be provided in a separate housing. A second optic lens 230may be proximate to the image sensor 220 such that all or a part of theimage data sensed or gathered by the image sensor 220 may pass throughthe second optic lens 230 and may be shaped or adjusted by the secondoptic lens 230.

Additionally, a controller 250 may be provided and may be in connectionwith the substrate 210 or generally within the same housing as theplurality of primary light sources 260 and image sensor 220.Alternatively, the controller 250 may be separate from the plurality ofprimary light sources 260 and/or image sensor 220 and may be provided ina separate housing. The controller 250 may be configured to receive datafrom the image sensor 220 and/or the plurality of primary light sources260 and may also provide control or other information to the pluralityof primary light sources 260 and/or image sensor 220.

According to an implementation of the disclosed subject matter, as shownin FIG. 1 at 110, a first subset of a plurality of primary light sourcesmay be activated to emit a first sensing spectrum onto a scene. Thefirst subset of the plurality of primary light sources may correspond toa channel that activates one or more light sources that correspond to aprimary color (e.g., red). As an example, at 110, the red light emittingdiodes (LEDs) of a plurality of primary light sources 260 of FIG. 2 maybe activated. The light sources that correspond to a primary color maybe grouped together or, preferably, may be spread out across an array oflight sources. For example, as shown in FIG. 2, primary light sources260 include a plurality of light sources. The red LEDs may be spread outthroughout the light sources 260 such that they can reach varioussections of a scene. At 110 of FIG. 1, the first subset of the pluralityof light sources may be activated such that their activation is notvisible to a human viewing the scene due to, for example, a highfrequency, short duration, and/or low amplitude modulation at which theactivation occurs. As shown in FIG. 2, the light from the first subsetof primary light sources 260 may emit via the first optic lens 240.

The primary light sources 260 may include, for example, primary colorsroyal blue, cyan, lime, amber, and red. Properties of the primary lightsources 260, used in accordance with the subject matter disclosedherein, may be known to the system, and specifically, for example, maybe known to the controller 250. As an example, the primary light sources260 may have chromaticities as shown in FIG. 3A and wavelength spectraas shown in FIG. 3B. Each of the dots in FIG. 3A including 310, 311,312, 313, and 314 may correspond to one of the five primaries of theprimary light sources 260, in this example. The dotted line maycorrespond to a single wavelength. As shown, by using at least threeprimaries, a curved blackbody locus 320 may be followed more closely,for example, in a tunable white system. According to an implementation,the color output by the primary light sources 260 of FIG. 2 may havechromaticity corresponding to the area enclosed by the dots in FIG. 3Aincluding 310, 311, 312, 313, and 314. Further, FIG. 3B shows thespectra 341, 342, 343, 344, and 345, corresponding to the five primariesin this example.

Further, FIG. 4A shows a graphical depiction of the spectral powerdistribution 410 of spectra generated by activating multiple of theprimary light sources in different ratios, in order to create differentcolor rendering modes according to implementations of this disclosure.The spectral power distribution 415 corresponds to a color renderingmode that gives the maximum color fidelity within the range of theprimaries, specifically the five primaries in this example. FIG. 4Bshows a graphical depiction 420 of the gamut index R_(g) and fidelityindex R_(f) where the gamut index R_(g) is the TM-30 measure for averagerelative gamut and the fidelity index R_(f) is the TM-30 measure foraverage color fidelity. As shown, the points 430, 431, 432, 433, and 434corresponds to the different color rendering modes and the square 435corresponds to a maximum color fidelity mode. FIG. 4C shows a graphicaldepiction 440 of R_(f) values as a function of the sixteen hue bins ofTM-30. As shown, data lines 442, 443, 444, 445, and 446 correspond tothe R_(f) values for the corresponding hue bins for the different colorrendering modes. Data line 441 corresponds to a maximum color fidelitymode. FIG. 4D shows a graphical depiction 450 of R_(cs) values as afunction of the sixteen hue bins of TM-30. As shown, data lines 451,452, 453, 454, and 45 correspond to the R_(CS) values for thecorresponding hue bins for the different color rendering modes. Dataline 456 corresponds to a maximum color fidelity mode.

At 120 of FIG. 1, first image data may be sensed from the scene whilethe first subset of the plurality of primary light sources areactivated. As shown in FIG. 2, the first image data may be sensed usingan image sensor 220 and the first image data sensed by the image sensor220 may reach the image sensor 220 via the second optic lens 230. Asfurther disclosed herein, image data may include characteristics aboutthe scene that may enable the controller 250 to approximate thereflectance spectrum for each pixel of the image sensor and/or create acolor map of the scene.

The image sensor 220 may be a light sensor with spatial resolution suchthat the image sensor 220 and/or controller 250 may avoid averaging outthe different colors present in a scene illuminated by the processdescribed by step 110 of FIG. 1. Notably, because the controller 250controls the subsets of a plurality of primary light sources as they areactivated to emit sensing spectrums onto a scene, the image sensor doesnot need to have wavelength-resolving capability in order to obtaininformation. To clarify, the controller 250 may utilize the knowninformation about the primary light sources 260, as subsets of theprimary light sources 260 emit light onto a scene, in order to obtaincolor information about the scene. Accordingly, by modulating thesubsets of the primary light sources 260, and by sensing the reflectedimage, as further disclosed herein, spectral information about the scenemay be obtained without using a spectrally selective sensor. It shouldbe noted that because the spectral information, via the image data, isobtained based on the light emitted by the subsets of primary lightsources 260, the resolution of the spectral information is limited bythe bandwidth of the primary light sources 260. However, it should benoted that such spectral information is sufficient to optimize colorrendering by the primary light sources 260 because the primary lightsources 260 will have the same limitation in spectral rendering whenemitting a lighting spectrum as they have when emitting the sensingspectrum.

At 130, a second subset of the plurality of primary light sources may beactivated to emit a second sensing spectrum onto the scene. The secondsubset of the plurality of primary light sources may correspond to achannel that activates one or more light sources that correspond to adifferent color (e.g., royal blue) than the first subset of theplurality of primary light sources. As an example, at 130, the royalblue light emitting diodes (LEDs) of a plurality of primary lightsources 260 of FIG. 2 may be activated. The light sources thatcorrespond to the royal blue color may be grouped together or,preferably, may be spread out across an array of primary light sources260. For example, as shown in FIG. 2, primary light sources 260 includea plurality of light sources. The royal blue LEDs may be spread outthroughout the primary light sources 260 such that they can reachvarious sections of a scene. At 130 of FIG. 1, similar to 110, thesecond subset of the plurality of light sources may be activated suchthat their activation is not visible to a human viewing the scene dueto, for example, a high frequency, short duration, and/or low amplitudemodulation at which the activation occurs. As shown in FIG. 2, the lightfrom the second subset of primary light sources 260 may emit via thefirst optic lens 240.

At 140 of FIG. 1, second image data may be sensed from the scene whilethe second subset of the plurality of primary light sources 260 of FIG.2 are activated. The second image data may be sensed using an imagesensor 220 and the second image data sensed by the image sensor 220 mayreach the image sensor 220 via the second optic lens 230. As furtherdisclosed herein, image data may include characteristics about the scenethat may enable the controller 250 to approximate the reflectancespectrum for each pixel of the image sensor and/or create a color map ofthe scene.

The controller 250, which may be factory programmed or user programmableto provide the desired response, as further disclosed herein, maymodulate the primary light sources 260 such that the first subset isactivated and the image sensor 220 collects first image data and thenthe second subset is activated and then the image sensor 220 collectssecond image data. It will be understood that although the disclosurereferences a first and second image data corresponding to a firstspectrum and second spectrum respectively, image data may be sensed foradditional available primary light sources. Preferably, four or more andmore preferably, five or more primary light sources may be available.Accordingly, third, fourth and fifth image data corresponding to third,fourth and fifth spectrums, respectively, may be sensed and provided toa controller such as controller 250 of FIG. 2.

At 150 of FIG. 1, reference information for the scene may be determinedbased on combined image data where combined image data is a combinationof the available image data such as the first image data and the secondimage data. A controller, such as controller 250 of FIG. 2, maydetermine the reference information based on combined image data such asthe combination of the first image data and the second image data.Additionally, according to an implementation, the controller may alsohave sensing spectrum information regarding the primary light sources260. FIGS. 4A-D, as described herein, provide example graphicaldepictions of spectra and corresponding TM-30 indices that thecontroller may have or have access to and that can be realized with theprimary light sources of FIG. 3A and FIG. 3B.

The reference information may correspond to an estimate of anapproximate reflectance spectrum for each pixel of the image sensor and,thus, may correspond to a color map of the scene. According to animplementation, the color map may be expressed as the relative responseof each pixel to each of the subsets of the primary light sources 260 ofFIG. 2. As an example, Table 1 includes the relative reflectedintensities sensed by a single pixel of an image sensor, for fourdifferent example reflectance spectra. The relative intensities aresensed for the five primary light sources, as shown in Table 1, suchthat a relative reflected intensity for a given primary source (i.e.,channel) is sensed when that primary source emits light onto the scene.In this example, the four example reflectance spectra correspond to fourColor Evaluation Samples (CES) as defined in TM-30 and correspond to CES5 (approximately maroon), CES 64 (approximately teal), CES 32(approximately mustard), and CES 81 (approximately purple). As aspecific example, Table 1 shows that the relative reflected intensitysensed by the image sensor 220 sensing a maroon portion of a scene whilea royal blue primary light source is emitting royal blue light onto thatpart of the scene is 0.098. Similarly, as shown in Table 1, the relativereflected intensity sensed by the image sensor 220 sensing a maroonportion of a scene while a red primary light source is emitting redlight onto that part of the scene is 0.5468. Because the color red iscloser to the approximate maroon of the scene, the relative reflectedintensity sensed when the red primary light source is activated ishigher (i.e., 0.5468) than when the royal blue primary light sources isactivated (i.e., 0.098). Using this technique, in accordance with thisimplementation, the controller may develop a color map of the scenebased on the data gathered via the pixel(s) of the image sensor.

TABLE 1 Primary Light Sources (LED Channels) Approx. Royal Blue Lime RedCyan PC Amber CES Color Ch1 Ch2 Ch3 Ch4 Ch5 5 Maroon .098 .2147 .5468.057 .3476 64 Teal .3621 .242 .0964 .4902 .1319 32 Mustard .0689 .4679.5068 .2481 .5287 81 Purple .3272 .1492 .1856 .202 .1573

According to another implementation, a color map may be expressed in astandardized color space such as CIE1931, CIE1976, CAM02-UCS, or thelike. Expressing the color map in such a standardized color space mayallow more advanced spectral optimization algorithms and/or moreintuitive programming of the desired response. The reflectance spectrumof each pixel of an image sensor may be estimated and, subsequently theassociated color coordinates for the pixel may be calculated based onthe estimated reflectance spectrum. FIG. 5 shows an exampleimplementation including reflectance spectra of CES 5, CES 64, CES 32and CES 81 colors from TM-30 represented by solid lines 511, 512, 513and 514 respectively. Dashed lines 521, 522, 523, and 524 show therespective estimated reflectance spectra using the five primary lightsources of FIGS. 3A and 3B.

The dashed lines 521, 522, 523, and 524 are estimated based on the imagedata collected by an image sensor. As a specific example, as shown inFIG. 3B, the royal blue primary channel emits a peak wavelength at 450nm shown by 541. Accordingly, FIG. 5 shows that the relative reflectedintensity sensed by an image sensor, such as image sensor 220 of FIG. 2,senses four different CES color points 531, 532, 533, and 534 while theroyal blue primary channel is activated, and emits a peak wavelength at450 nm shown by 541. The four different CES color points in this examplecorrespond to the maroon (CES 5) 531, the teal (CES 64) 532, the mustard(CES 32) 533, and the purple (CES 81) 534. The five wavelengthscorresponding to the five primary light sources are shown by 541 for theroyal blue, 542 for the cyan, 543 for the lime, 544 for the amber, and545 for the red. As a specific example, while the royal blue primarylight source is activated to emit sensing light at 450 nm, shown by 541,the image sensor may register a relative reflectance intensity ofroughly 0.098 corresponding to the maroon CES 5, as shown by point 531in FIG. 5, and a relative reflectance intensity of roughly 0.3621corresponding to the teal CES 64, as shown by point 534. Similarly, inthe example shown in FIG. 5, the image sensor 220 may capture four CEScolor points at the peak wavelength for each of the five primary lightsources of FIGS. 3A and 3B, for a total of 20 SPD data points, in thisexample. To summarize, by cycling through the five primaries andrecording the reflected intensity via the image sensor, SPD data pointsare obtained at the centroid wavelength of each primary. An approximatereflectance spectrum can subsequently be estimated based on these datapoints via polynomial fits such as those shown by the dashed lines 521,522, 523, and 524. Each dashed line 521, 522, 523, and 524 represents abest polynomial fit for a respective CES color based on data pointscollected at peak wavelengths of the five primary sources, withconditions defined at 380 nm and 780 nm. It should be noted that otherinterpolation methods may also be used such as a linear interpolation,spline interpolation, or moving average interpolation.

Generally, the accuracy of the approximation may improve with anincreasing number of primary light sources and may be the highest whenthe primary light sources have narrow bandwidth and are spread outevenly over the visible spectrum. As a reference, FIG. 6 shows ananalysis of the polynomial fit with the five primaries of FIGS. 3A and3B where data points for all 99 CES colors from TM-30 were calculated bysequentially activating each of the five primaries. FIG. 6 shows a graph600 where of the 99 CES from TM-30, 58 CES colors are identified bytheir correct TM-30 hue bin (1-16), and 96 CES colors are identifiedcorrectly within plus or minus one hue bin. In FIG. 6, the circlesrepresent the original CES color point and the corresponding diamondrepresent the estimated color point as determined by using the fiveprimary light sources.

At 160 of FIG. 1, the spectrum optimization criteria for primary lightsources may be determined based on the reference information and one ormore desired output parameters. As further discussed herein, thespectrum optimization criteria may be the criteria that the primarylight sources are operated based on when emitting a lighting spectrumonto a scene. Accordingly, the spectrum optimization criteria are thecriteria that achieve the desired output based on the referenceinformation of the scene. The reference information may be determinedbased on combined image data as disclosed herein in reference to 150 ofFIG. 1. The desired output parameters may be generated via anyapplicable manner such as based on user input, based the location of adevice or component, based on the image data, based on predeterminedcriteria, or the like. A user may provide input via a wireless signalsuch as via Bluetooth, WiFi, RFID, infrared, or the like. Alternatively,a user may provide input via a keyboard, mouse, touchpad, hapticresponse, voice command, or the like. A controller, such as controller250 of FIG. 2, may utilize the reference information and the desiredoutput parameter(s) to generate the spectrum optimization criteria.

According to an implementation, spectrum optimization criteria may bepre-calculated offline based on potential image data and outputparameters and may be stored via an applicable technique, such as alookup table, on a controller or a memory accessible by the controller.Such pre-calculation and storing may reduce the need for complexcalculations by an on-board controller that may be limited in itscomputational ability. FIG. 8 shows an example flowchart diagram of suchan implementation. As shown, factory input data 810 may be provided toan on-board processing system 820. Specifically, the factory input data810 may be provided to a scene color mapping module 821 to generatespectral data points based on for example, image data collected whileprimary light sources emit a sensing spectrum as well as intensityvalues and factory input data 810. The factory input data 810 may alsobe provided to a source spectrum optimization module 822 which maycalculate desired indices/spectrum optimization criteria based on: theoutput from the scene color mapping module 821 and specified responsebehavior (output parameters) from the user programming module 815. Thespectrum optimization module 822 may also set the channel drive currentsbased on the determined spectrum optimization criteria.

At 170 of FIG. 1, the plurality of primary light sources may beactivated to emit a lighting spectrum based on the spectrum optimizationcriteria. The spectrum optimization criteria may be provided to theplurality of primary light sources by the controller either directly orvia applicable communication channels, such as a wired or wirelesscommunication channel as further disclosed herein.

According to an implementation of the disclosed subject matter, thespectrum optimization criteria may result in different color renderingmodes to be emitted. For example, the desired output parameters may beto maximize the saturation or fidelity of the most contrasting dominantcolors in a scene. A controller may utilize the image data to determinethe most contrasting dominant colors in a given scene and generatespectrum optimization criteria for the light sources to emit such thatthe saturation or fidelity of those colors is maximized. As an example,the five primary light sources of FIGS. 3A-B may be used for colorsaturation. FIG. 7A shows chart 710 that includes estimated and actualcolor points of several CES colors in each of the TM-30 hue bins 1, 5,9, and 13. As shown in FIG. 7A via chart 710, color saturation mayprimarily be achieved in either of two directions: along the red to cyanaxis (e.g., TM-30 hue bins 1 and 9) shown along the horizontal axis inFIG. 7A or the green-yellow to purple axis (e.g., bins 5 and 13) shownalong the vertical axis in FIG. 7A. Accordingly, as a specific example,as shown in FIG. 7B, a controller may select spectrum optimizationcriteria based on one of three color rendering modes where the binscorrespond to TM-30 hue bins and 730 corresponds to a perfect TM-30circle: (1) bin 1 and bin 9 oversaturation if mainly red and/or cyan aredetected as represented by trace 721, (2) bin 5 and bin 13oversaturation if mainly green-yellow and/or purple are detected asrepresented by trace 722, and (3) a high fidelity spectrum if there isno dominant color detected in one of these hue bins as represented bytrace 723.

According to an implementation, a controller may, based on outputparameters, select optimization criteria for a spectrum that maximizesoversaturation of the dominant color detected, or a spectrum thatmaximizes oversaturation of all detected colors weighted by theiroccurrence. In some implementations, slightly oversaturated colors maybe subjectively preferred, as may be indicated by the output parameters.Further, according to an implementation, oversaturation may bequantified by chroma shift such as, for example, the Rcs indices inTM-30. A typical preferred range for Rcs may be 0-20%, and a morepreferred range may be 5-10%.

Further, according to an implementation, image data may be compared to apreviously recorded image data to determine the colors of a moving ornew object of interest such that the spectrum can be optimized for thisobject. Alternatively, the average reflectance spectrum of the image maybe used to optimize the spectrum for the average color. In theoptimization of the spectrum, the chromaticity may be kept constant orallowed to change.

According to an implementation, the output parameters may correspond totargeting a certain chromaticity of the emitted light, based on a givenscene as determined based on the image data. For example, a cool whitemay be desirable when the scene contains cool hues such as blue, cyanand green, whereas a warm white may illuminate yellow, orange and redhues. Such a scheme may enhance color gamut and visual brightness of thescene. According to this example, a controller may provide spectrumoptimization criteria corresponding to three or more primaries.

According to an implementation, the output parameters may correspond toachieving a desired color point. According to this implementation, acontroller may utilize the reflected light information within the imageto determine the spectrum optimization criteria for the emitted spectrumthat is needed to achieve a desired overall color point. For example, ina space where a colored object or wall is illuminated near a whitebackground, the light reflected off the colored object or wall may causethe white background to appear non-white, may be undesirable, asindicated by the output parameters. Accordingly, a controller maygenerate spectrum optimization criteria such that the primary lightsources emit a lighting spectrum that maintains the white background aswhite.

Table 2 shows a summary of example output parameters, example imagedata, and corresponding example spectrum optimization criteria.

TABLE 2 Output Parameter Image Data Spectrum optimization criteria Arrayof color points (e.g. a′, CCT, Duv, Rf, Rg, Rcs, h1-16 b′) Highsaturation or >50% of scene in hue bins 16, Max Rcs, h1, max Rcs, h9,Rf > 75 high fidelity mode 1, 2 and 8-10 (preferred >50% of scene in huebins 4-6 Max Rcs, h5, max Rcs, h13, Rf > 75 embodiment with and 12-14 5primaries) Neither of the above Rf > 90, max Rg Maximize saturationDominant color with high Max Rcs for hue bin of dominant of dominantcolor chroma (sqrt(a′2 + b′2) > 15) color, Rf > 75 Maximize overallMixed scene Max Rcs for each hue bin color saturation weighted byoccurrence and White point >25% of scene with low CCT and Duv correctedfor average color correction chroma (sqrt(a′2 + b ′ 2) < 10) of and highchroma portion >25% of scene with high chroma Tune CCT to Predominantlywarm colors Reduced CCT for warm colors, increased enhance gamut (a′ >0) or cool colors (a′ < 0) CCT for cool colors Highlight moving Subtractfrom previous frame Max Rcs for hue bin of detected object with todetect moving object(s); moving object(s) high saturation determinedominant hue

According to an implementation, the lighting system disclosed herein mayinclude a communication interface that may enable communication to anexternal component or system. The communication may be facilitated bywired or wireless transmissions and may incorporate any applicable modesincluding Bluetooth, WiFi, cellular, infrared, or the like. According toan implementation, the controller may be external to the lighting systemsuch that image data is provided to the external controller and spectrumoptimization criteria is determined and/or provided by the externalcontroller. Additionally or alternatively, output criteria may beprovided via an external input device (e.g., a mobile phone) and/or maybe provided to an external component such as an external controller.

According to an implementation, the sensing spectrum may be emitted by afirst subset of primary light sources while a lighting spectrum isemitted by the remaining or other subset of primary light sources. Thefirst subset may emit the sensing spectrum such that the sensingspectrum is not visible to humans (e.g., at a high frequency). Imagedata may be collected, as disclosed herein, based on the first subsetemitting the sensing spectrum and may subsequently be collected when asecond subset emits a sensing spectrum subsequent the first subsetswitching to emitting a lighting spectrum.

Although features and elements are described above in particularcombinations, one of ordinary skill in the art will appreciate that eachfeature or element can be used alone or in any combination with theother features and elements. In addition, the methods described hereinmay be implemented in a computer program, software, or firmwareincorporated in a computer-readable medium for execution by a computeror processor. Examples of computer-readable media include electronicsignals (transmitted over wired or wireless connections) andcomputer-readable storage media. Examples of computer-readable storagemedia include, but are not limited to, a read only memory (ROM), arandom access memory (RAM), a register, cache memory, semiconductormemory devices, magnetic media such as internal hard disks and removabledisks, magneto-optical media, and optical media such as CD-ROM disks,and digital versatile disks (DVDs).

1. A method comprising: illuminating a scene with a first sensingspectrum emitted by a first subset of a plurality of primary lightsources; capturing a first image of the scene while the scene isilluminated with the first sensing spectrum, the first image comprisinga plurality of pixels; illuminating the scene with a second sensingspectrum emitted by a second subset of the plurality of primary lightsources; capturing a second image of the scene while the scene isilluminated with the second sensing spectrum the second image comprisingthe plurality of pixels; generating a color map of the scene assigning acolor point in a color space to each of the plurality of pixels based onthe first sensing spectrum, the first image, the second sensingspectrum, and the second image; determining a lighting spectrum based onthe color map; and illuminating the scene with the lighting spectrumemitted by the plurality of primary light sources.
 2. The method ofclaim 1, further comprising: illuminating the scene with a third sensingspectrum emitted by a third subset of the plurality of primary lightsources; capturing a third image of the scene while the scene isilluminated with the third sensing spectrum, the third image comprisingthe plurality of pixels; illuminating the scene with a fourth sensingspectrum emitted by a fourth subset of the plurality of primary lightsources; capturing a fourth image of the scene while the scene isilluminated with the fourth sensing spectrum, the fourth imagecomprising the plurality of pixels; illuminating the scene with a fifthsensing spectrum emitted by a fifth subset of the plurality of primarylight sources; capturing a fifth image of the scene while the scene isilluminated with the fifth sensing spectrum, the fifth image comprisingthe plurality of pixels; wherein generating the color map of the scenecomprises assigning a color point in a color space to each of the pixelsbased on the first sensing spectrum, the first image, the second sensingspectrum, the second image, the third sensing spectrum, the third image,the fourth sensing spectrum, the fourth image, the fifth sensingspectrum, and the fifth image.
 3. (canceled)
 4. The method of claim 1,wherein illuminating the scene with the first sensing spectrum comprisesmodulating the light output from the first subset of the plurality ofprimary light sources with a modulation amplitude not substantiallyvisible to humans, and illuminating the scene with the second sensingspectrum comprises modulating the light output from the second subset ofthe plurality of primary light sources with modulation amplitude notsubstantially visible to humans.
 5. The method of claim 1, whereinilluminating the scene with the first sensing spectrum comprisesmodulating the light output from the first subset of the plurality ofprimary light sources with a modulation frequency not substantiallyvisible to humans, and illuminating the scene with the second sensingspectrum comprises modulating the light output from the second subset ofthe plurality of primary light sources with a modulation frequency notsubstantially visible to humans.
 6. The method of claim 1, wherein thefirst image and the second image are provided to a controller configuredto generate the color map.
 7. The method of claim 1, wherein the firstsensing spectrum, the second sensing spectrum, and the lighting spectrumare emitted through a first optic lens.
 8. The method of claim 7,wherein the first image and the second image are captured through asecond optic lens.
 9. The method of claim 1, wherein the lightingspectrum is determined based on a lookup table.
 10. The method of claim9 wherein the lookup table is stored on a controller or stored on amemory accessible by a controller.
 11. (canceled)
 12. A devicecomprising: a plurality of primary light sources configured toilluminate a scene through a first optic with a first sensing spectrum,a second sensing spectrum, and a lighting spectrum; an image sensorconfigured to capture through a second optic a first image of the scenewhile the scene is illuminated with the first sensing spectrum, thefirst image comprising a plurality of pixels, and to capture through thesecond optic a second image of the scene while the scene is illuminatedwith the second sensing spectrum, the second image comprising theplurality of pixels; a controller configured to control the plurality ofprimary light sources to illuminate the scene with the first sensingspectrum and the second sensing spectrum, to generate a color map of thescene comprising a color point in a color space for each of theplurality of pixels based on the first sensing spectrum, the firstimage, the second sensing spectrum, and the second image, to determinethe lighting spectrum based on the color map, and to control theplurality of primary light sources to illuminate the scene with thelighting spectrum.
 13. The device of claim 12, wherein the first sensingspectrum is emitted by a first subset of the plurality of primary lightsources and the second sensing spectrum is emitted by a second subset ofthe plurality of primary light sources. 14-15. (canceled)
 16. The deviceof claim 12, wherein the image sensor does not have wavelength-resolvingcapability.
 17. The device of claim 12, comprising a housing in whichare located the controller and the primary light sources.
 18. The deviceof claim 12, wherein the controller and the primary light sources arehoused separately.
 19. The device of claim 12, wherein the controlleraccesses a lookup table to determine the lighting spectrum.
 20. A methodof operating a light-emitting diode (LED) Lighting system, the methodcomprising: sequentially modulating each of a plurality of LED channelsto illuminate a scene with a different color of light during eachmodulation; capturing an image of the illuminated scene during eachmodulation; generating a color map of the illuminated scene based on anestimated reflectance of each pixel in the recorded image for eachmodulation, the color man assigning a color point in a color space toeach of the pixels; and setting a drive current for each of theplurality of channels based on a desired color rendering mode and thegenerated color map.